home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="EUC-KR" ?>
- <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
- <?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
- <!-- English Revision: 1.7.2.6 -->
-
- <!--
- Copyright 2004 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
- -->
-
- <modulesynopsis metafile="mod_setenvif.xml.meta">
-
- <name>mod_setenvif</name>
- <description>┐Σ├╗└╟ ╝║░▌┐í ╡√╢≤ ╚»░µ║»╝÷ ╝│┴ñ└╗ ║»░µ╟╤┤┘</description>
- <status>Base</status>
- <sourcefile>mod_setenvif.c</sourcefile>
- <identifier>setenvif_module</identifier>
-
-
- <summary>
-
- <p><module>mod_setenvif</module> ╕≡╡Γ└║ ┐Σ├╗└╟ ╝║░▌└╠
- ┴ñ▒╘╟Ñ╟÷╜─┐í ╟╪┤τ╟╧┤┬┴÷ ┐⌐║╬╖╬ ╚»░µ║»╝÷╕ª ╝│┴ñ╟╤┤┘. ╝¡╣÷└╟
- ┤┘╕Ñ ║╬║╨└╠ ╟α╡┐└╗ ░ß┴ñ╟╥╢º └╠ ╚»░µ║»╝÷╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
-
- <p>╝│┴ñ╞─└╧┐í │¬┐└┤┬ ╝°╝¡┤δ╖╬ ┴÷╜├╛ε╕ª ├│╕«╟╤┤┘. ▒╫╖í╝¡
- ║Ω╢≤┐∞└·░í MSIE░í ╛╞┤╧╢≤ mozilla└╬ ░µ┐∞ <code>netscape</code>╕ª
- ╝│┴ñ╟╧┤┬ ╛╞╖í ┐╣┐═ ░░└╠ ┐⌐╖» ┴÷╜├╛ε╕ª ╟╘▓▓ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p>
-
- <example>
- BrowserMatch ^Mozilla netscape<br />
- BrowserMatch MSIE !netscape<br />
- </example>
- </summary>
-
- <seealso><a href="../env.html">╛╞╞──í└╟ ╚»░µ║»╝÷</a></seealso>
-
- <directivesynopsis>
- <name>BrowserMatch</name>
- <description>HTTP User-Agent┐í ╡√╢≤ ╚»░µ║»╝÷╕ª ╝│┴ñ╟╤┤┘</description>
- <syntax>BrowserMatch <em>regex [!]env-variable</em>[=<em>value</em>]
- [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
- <contextlist><context>server config</context>
- <context>virtual host</context><context>directory</context>
- <context>.htaccess</context></contextlist>
- <override>FileInfo</override>
-
- <usage>
- <p><directive>BrowserMatch</directive>┤┬ <directive
- module="mod_setenvif">SetEnvIf</directive> ┴÷╜├╛ε└╟ ╞»║░╟╤
- ░µ┐∞╖╬, HTTP ┐Σ├╗ ╟∞┤⌡ <code>User-Agent</code>┐í ╡√╢≤ ╚»░µ║»╝÷╕ª
- ╝│┴ñ╟╤┤┘. ┤┘└╜ ╡╬ ┴┘└║ ░░┤┘:</p>
- <example>
- BrowserMatchNoCase Robot is_a_robot<br />
- SetEnvIfNoCase User-Agent Robot is_a_robot<br />
- </example>
-
- <p>├▀░í ┐╣┴ª:</p>
- <example>
- BrowserMatch ^Mozilla forms jpeg=yes browser=netscape<br />
- BrowserMatch "^Mozilla/[2-3]" tables agif frames javascript<br />
- BrowserMatch MSIE !javascript<br />
- </example>
- </usage>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>BrowserMatchNoCase</name>
- <description>┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┴÷╛╩░φ User-Agent┐í ╡√╢≤ ╚»░µ║»╝÷╕ª
- ╝│┴ñ╟╤┤┘</description>
- <syntax>BrowserMatchNoCase <em>regex [!]env-variable</em>[=<em>value</em>]
- [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
- <contextlist><context>server config</context>
- <context>virtual host</context><context>directory</context>
- <context>.htaccess</context></contextlist>
- <override>FileInfo</override>
- <compatibility>╛╞╞──í 1.2 └╠╗≤ (╛╞╞──í 1.2┐í╝¡ └╠ ┴÷╜├╛ε┤┬ ╟÷└τ
- ╛°╛ε┴° mod_browser ╕≡╡Γ┐í └╓╛·┤┘)</compatibility>
-
- <usage>
-
- <p><directive>BrowserMatchNoCase</directive> ┴÷╜├╛ε┤┬ <directive
- module="mod_setenvif">BrowserMatch</directive> ┴÷╜├╛ε┐═
- └╟╣╠╗≤ ░░┤┘. ▒╫╖»│¬ └╠ ┴÷╜├╛ε┤┬ ┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┴÷╛╩┤┬┤┘.
- ┐╣╕ª ╡Θ╛ε:</p>
- <example>
- BrowserMatchNoCase mac platform=macintosh<br />
- BrowserMatchNoCase win platform=windows<br />
- </example>
-
- <p><directive>BrowserMatch</directive>┐═
- <directive>BrowserMatchNoCase</directive> ┴÷╜├╛ε┤┬
- <directive module="mod_setenvif">SetEnvIf</directive>┐═
- <directive module="mod_setenvif">SetEnvIfNoCase</directive>
- ┴÷╜├╛ε└╟ ╞»║░╟╤ ░µ┐∞┤┘. ┤┘└╜ ┴╓ ┴┘└║ ░░┤┘:</p>
- <example>
- BrowserMatchNoCase Robot is_a_robot<br />
- SetEnvIfNoCase User-Agent Robot is_a_robot<br />
- </example>
- </usage>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>SetEnvIf</name>
- <description>┐Σ├╗└╟ ╝║┴·┐í ╡√╢≤ ╚»░µ║»╝÷╕ª ╝│┴ñ╟╤┤┘</description>
- <syntax>SetEnvIf <em>attribute
- regex [!]env-variable</em>[=<em>value</em>]
- [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
- <contextlist><context>server config</context>
- <context>virtual host</context><context>directory</context>
- <context>.htaccess</context></contextlist>
- <override>FileInfo</override>
-
- <usage>
- <p><directive>SetEnvIf</directive> ┴÷╜├╛ε┤┬ ┐Σ├╗└╟ ╝║┴·┐í
- ╡√╢≤ ╚»░µ║»╝÷╕ª ┴ñ└╟╟╤┤┘. ├╣╣°┬░ ╛╞▒╘╕╒╞« <em>attribute</em>┤┬
- ┤┘└╜ ╝╝░í┴÷┴▀ ╟╧│¬┤┘:</p>
-
- <ol>
- <li>HTTP ┐Σ├╗ ╟∞┤⌡ (┤⌡ └┌╝╝╟╤ ┴ñ║╕┤┬ <a
- href="http://www.rfc-editor.org/rfc/rfc2616.txt">RFC2616</a>
- ┬ⁿ░φ); ┐╣╕ª ╡Θ╛ε: <code>Host</code>, <code>User-Agent</code>,
- <code>Referer</code>, <code>Accept-Language</code>. ┴ñ▒╘╟Ñ╟÷╜─└╗
- ╗τ┐δ╟╧┐⌐ ┐⌐╖» ┐Σ├╗ ╟∞┤⌡╕ª ┴÷─¬╟╥ ╝÷ └╓┤┘.</li>
-
- <li>┐Σ├╗└╟ ┤┘└╜ ╝║┴·┴▀ ╟╧│¬:
- <ul>
- <li><code>Remote_Host</code> - (└╓┤┘╕Θ) ┐Σ├╗╟╧┤┬ ┼¼╢≤└╠╛≡╞«└╟
- ╚ú╜║╞«╕φ</li>
-
- <li><code>Remote_Addr</code> - ┐Σ├╗╟╧┤┬ ┼¼╢≤└╠╛≡╞«└╟ IP ┴╓╝╥</li>
-
- <li><code>Server_Addr</code> - ┐Σ├╗└╗ ╣▐┤┬ ╝¡╣÷└╟ IP ┴╓╝╥
- (2.0.43 ╣÷└ⁿ └╠╚─┐í╕╕)</li>
-
- <li><code>Request_Method</code> - ╗τ┐δ╟╤ ╕▐╜ß╡σ └╠╕º
- (<code>GET</code>, <code>POST</code>, <em>╡ε╡ε</em>)</li>
-
- <li><code>Request_Protocol</code> - ┐Σ├╗└╟ ╟┴╖╬┼Σ─▌ └╠╕º░·
- ╣÷└ⁿ (<em>┐╣╕ª ╡Θ╛ε</em>, "HTTP/0.9", "HTTP/1.1", <em>╡ε.</em>)</li>
-
- <li><code>Request_URI</code> - HTTP ┐Σ├╗┐í╝¡ ┐Σ├╗╟╤ └┌┐°
- -- └╧╣▌└√└╕╖╬ URL┐í╝¡ ┴·└╟╣«└┌┐¡└╗ ┴ª┐▄╟╤ ╜║┼┤(scheme)░·
- ╚ú╜║╞« └╠╚─ ║╬║╨</li>
- </ul>
- </li>
-
- <li>┐Σ├╗░· ┐¼░ⁿ╡╚ ╚»░µ║»╝÷ └╠╕º. ▒╫╖í╝¡ <directive>SetEnvIf</directive>
- ┴÷╜├╛ε┤┬ └╠└ⁿ ┴÷╜├╛ε└╟ ░ß░·╕ª ░╦╗τ╟╥ ╝÷ └╓┤┘. └╠└ⁿ┐í
- <code>SetEnvIf[NoCase]</code> ┴÷╜├╛ε╖╬ ┴ñ└╟╟╤ ╚»░µ║»╝÷╕╕└╗
- ░╦╗τ╟╥ ╝÷ └╓┤┘. '└╠└ⁿ'└╠╢⌡ (╝¡╣÷└ⁿ┐¬░· ░░└╠) ┤⌡ │╨└║ ┐╡┐¬ ╚ñ└║
- ┴÷╜├╛ε└╟ ╟÷└τ ┐╡┐¬ └╠└ⁿ└╗ ╢µ╟╤┤┘. ┐Σ├╗ ╝║┴·└╠ ╛╞┤╧░φ ┴ñ▒╘╟Ñ╟÷╜─└╠
- ╛╞┤╤ <em>attribute</em>┤┬ ╚»░µ║»╝÷╖╬ ├δ▒▐╟╤┤┘.</li>
- </ol>
-
- <p>╡╬╣°┬░ ╛╞▒╘╕╒╞«┤┬ (<em>regex</em>) <a
- href="http://www.pcre.org/">Perl ╚ú╚» ┴ñ▒╘╟Ñ╟÷╜─</a>└╠┤┘.
- └╠┤┬ POSIX.2 egrep└╟ ┴ñ▒╘╟Ñ╟÷╜─░· ║±╜┴╟╧┤┘. <em>regex</em>░í
- <em>attribute</em>┐í ┤δ└└╟╧╕Θ │¬╕╙┴÷ ╛╞▒╘╕╒╞«╕ª ├│╕«╟╤┤┘.</p>
-
- <p>│¬╕╙┴÷ ╛╞▒╘╕╒╞«┤┬ ╝│┴ñ╟╥ ║»╝÷╕φ░· (╝▒┼├└√└╬) ╝│┴ñ░¬╡Θ└╠┤┘.
- ┤┘└╜░· ░░└║ ╟ⁿ╜─└╠┤┘</p>
-
- <ol>
- <li><code><em>varname</em></code>, ╚ñ└║</li>
-
- <li><code>!<em>varname</em></code>, ╚ñ└║</li>
-
- <li><code><em>varname</em>=<em>value</em></code></li>
- </ol>
-
- <p>├╣╣°┬░ ╟ⁿ┼┬┤┬ ░¬└╕╖╬ "1"└╗ ╗τ┐δ╟╤┤┘. ╡╬╣°┬░ ╟ⁿ┼┬┤┬ ║»╝÷░í
- └╠╣╠ ┴ñ└╟╡╚ ░µ┐∞ ║»╝÷╕ª ┴ª░┼╟╧░φ, ╝╝╣°┬░┤┬ ║»╝÷└╟ ░¬└╕╖╬
- <code><em>value</em></code>╕ª ╝│┴ñ╟╤┤┘. ╛╞╞──í 2.0.51║╬┼═
- <var>value</var>┐í └╓┤┬ <code>$1</code>..<code>$9</code>╕ª
- <var>regex</var>└╟ ░²╚ú─ú ╟╧└º╟Ñ╟÷╜─└╕╖╬ ┤δ├╝╟╤┤┘.</p>
-
- <example>
- <title>┐╣┴ª:</title>
- SetEnvIf Request_URI "\.gif$" object_is_image=gif<br />
- SetEnvIf Request_URI "\.jpg$" object_is_image=jpg<br />
- SetEnvIf Request_URI "\.xbm$" object_is_image=xbm<br />
- :<br />
- SetEnvIf Referer www\.mydomain\.com intra_site_referral<br />
- :<br />
- SetEnvIf object_is_image xbm XBIT_PROCESSING=1<br />
- :<br />
- SetEnvIf ^TS* ^[a-z].* HAVE_TS<br />
- </example>
-
- <p>├│└╜ ╝╝ ┴┘└║ └╠╣╠┴÷ ╞─└╧└╗ ┐Σ├╗╟╤ ░µ┐∞ ╚»░µ║»╝÷
- <code>object_is_image</code>╕ª ╝│┴ñ╟╤┤┘. │╫╣°┬░ ┴┘└║ ╞Σ└╠┴÷╕ª
- <code>www.mydomain.com</code> └Ñ╗τ└╠╞«┐í╝¡ ┬ⁿ┴╢╟╤ ░µ┐∞
- <code>intra_site_referral</code>└╗ ╝│┴ñ╟╤┤┘.</p>
-
- <p>╕╢┴÷╕╖ ┐╣┤┬ ┐Σ├╗┐í └╠╕º┐í "TS"╖╬ ╜├└█╟╧░φ ░¬└╠ [a-z]
- ┴▀ ╟╧│¬╖╬ ╜├└█╟╧┤┬ ╟∞┤⌡░í └╓┤┬ ░µ┐∞ ╚»░µ║»╝÷
- <code>HAVE_TS</code>╕ª ╝│┴ñ╟╤┤┘.</p>
- </usage>
-
- <seealso><a href="../env.html">╛╞╞──í└╟ ╚»░µ║»╝÷</a>┐í ┤⌡ ╕╣└║
- ┐╣┴ª░í └╓┤┘.
- </seealso>
- </directivesynopsis>
-
- <directivesynopsis>
- <name>SetEnvIfNoCase</name>
- <description>┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┴÷╛╩░φ ┐Σ├╗└╟ ╝║┴·┐í ╡√╢≤ ╚»░µ║»╝÷╕ª
- ╝│┴ñ╟╤┤┘</description>
- <syntax>SetEnvIfNoCase <em>attribute regex
- [!]env-variable</em>[=<em>value</em>]
- [[!]<em>env-variable</em>[=<em>value</em>]] ...</syntax>
- <contextlist><context>server config</context>
- <context>virtual host</context><context>directory</context>
- <context>.htaccess</context></contextlist>
- <override>FileInfo</override>
- <compatibility>╛╞╞──í 1.3 └╠╚─</compatibility>
-
- <usage>
-
- <p><directive>SetEnvIfNoCase</directive>┤┬ └╟╣╠╗≤ <directive
- module="mod_setenvif">SetEnvIf</directive> ┴÷╜├╛ε┐═ ░░┴÷╕╕,
- ┤δ╝╥╣«└┌╕ª ▒╕║░╟╧┴÷╛╩░φ ┴ñ▒╘╟Ñ╟÷╜─└╗ ├ú┤┬┤┘. ┐╣╕ª ╡Θ╛ε:</p>
- <example>
- SetEnvIfNoCase Host Apache\.Org site=apache
- </example>
-
- <p>└╠ ░µ┐∞ HTTP ┐Σ├╗ ╟∞┤⌡ <code>Host:</code>░í
- <code>Apache.Org</code>, <code>apache.org</code> ╡ε└╗ ╞≈╟╘╟╧╕Θ
- <code>site</code> ╚»░µ║»╝÷╕ª "<code>apache</code>"╖╬ ╝│┴ñ╟╤┤┘.</p>
- </usage>
- </directivesynopsis>
- </modulesynopsis>
-